<!DOCTYPE html>
<meta charset="utf-8">
<title>mathcolor on semantics (reference)</title>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <semantics mathcolor="red">
    <mtext>□■□■□■□</mtext>
  </semantics>
</math>

